package 面试;


public class test02 {

    public void change1(String str){
        str = "xxx";
    }

    public static void main(String[] args) {
        test02 t = new test02();
        String str = "abc";
        String str2 = new String("abc");
        t.change1(str);
        t.change1(str2);
        System.out.println(str);
        System.out.println(str2);
    }
}
